package com.zkkz.boot.restTemplate.controller;


import com.zkkz.boot.restTemplate.pojo.ResultResp;
import com.zkkz.boot.restTemplate.service.WebServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author tsj
 * @date 2023/9/12 14:33
 * @description
 */
@Slf4j
@RefreshScope
@RestController
@RequestMapping("/web")
@Api(tags = "web后台")
public class WebController {

    @Resource
    private WebServiceImpl webService;

    @ApiOperation(value = "远程调用campus测试")
    @PostMapping("/testRemoteCallCampusTest")
    public ResultResp testRemoteCallCampusTest(/*@RequestBody @Validated ParentUserIdReq req*/) {
        return webService.testRemoteCallCampusTest();
    }
}
